package dao

import (
	"developer-branch/global"
	"developer-branch/internal/model"
)

func GetUserByMobile(mobile string) bool {
	var result model.User
	if err := global.DB.Where("mobile = ?", mobile).Find(&result).Error; err != nil {
		return false
	}
	return true
}
